;/*****************************************************************************
; * @file:    startup_1986BE9x.s
; * @purpose: CMSIS Cortex-M3 Core Device Startup File for the 
; *           Milandr 1986BE9x device series 
; * @version: 
; * @date:    
; *****************************************************************************
; * @copy
; *
; * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
; * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
; * TIME. AS A RESULT, PHYTON SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT
; * OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
; * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
; * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
; *
; * <h2><center>&copy; COPYRIGHT 2010 Phyton</center></h2>
; ******************************************************************************
; * FILE startup_1986BE9x.s
; */


        MODULE  ?cstartup

        ;; Forward declaration of sections.
        SECTION CSTACK:DATA:NOROOT(3)

        SECTION .intvec:CODE:NOROOT(2)

        EXTERN  __iar_program_start
        EXTERN  SystemInit
        PUBLIC  __vector_table

        DATA
__vector_table
        DCD     sfe(CSTACK)
        DCD     Reset_Handler             ; Reset Handler
        DCD     NMI_Handler               ; NMI Handler
        DCD     HardFault_Handler         ; Hard Fault Handler
        DCD     MemManage_Handler         ; MPU Fault Handler
        DCD     BusFault_Handler          ; Bus Fault Handler
        DCD     UsageFault_Handler        ; Usage Fault Handler
        DCD     0                         ; Reserved
        DCD     0                         ; Reserved
        DCD     0                         ; Reserved
        DCD     0                         ; Reserved
        DCD     SVC_Handler               ; SVCall Handler
        DCD     DebugMon_Handler          ; Debug Monitor Handler
        DCD     0                         ; Reserved
        DCD     PendSV_Handler            ; PendSV Handler
        DCD     SysTick_Handler           ; SysTick Handler

         ; External Interrupts
        DCD     0      
        DCD     0      
        DCD     USB_IRQ_H       
        DCD     0      
        DCD     0      
        DCD     DMA_IRQ_H       
        DCD     UART1_IRQ_H     
        DCD     UART2_IRQ_H     
        DCD     SSP1_IRQ_H      
        DCD     0      
        DCD     I2C_IRQ_H       
        DCD     POWER_IRQ_H       
        DCD     WWDG_IRQ_H  
        DCD     0
        DCD     Timer1_IRQ_H  
        DCD     Timer2_IRQ_H  
        DCD     Timer3_IRQ_H  
        DCD     ADC_IRQ_H	
        DCD     SDIO_IRQ_H    
        DCD     COMPARATOR_IRQ_H     
        DCD     SSP2_IRQ_H    
        DCD     0     
        DCD     0        
        DCD     0     
        DCD     0     
        DCD     0  
        DCD     UART3_IRQ_H   
        DCD     BKP_IRQ_H     
        DCD     EXT_INT1_IRQ_H    
        DCD     EXT_INT2_IRQ_H    
        DCD     EXT_INT3_IRQ_H    
        DCD     EXT_INT4_IRQ_H    

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; Default interrupt handlers.
;;
        THUMB

        PUBWEAK Reset_Handler
        SECTION .text:CODE:REORDER(2)
Reset_Handler
        LDR     R0, =SystemInit
        BLX     R0
        LDR     R0, =__iar_program_start
        BX      R0

        PUBWEAK NMI_Handler
        SECTION .text:CODE:REORDER(1)
NMI_Handler
        B NMI_Handler

        PUBWEAK HardFault_Handler
        SECTION .text:CODE:REORDER(1)
HardFault_Handler
        B HardFault_Handler

        PUBWEAK MemManage_Handler
        SECTION .text:CODE:REORDER(1)
MemManage_Handler
        B MemManage_Handler

        PUBWEAK BusFault_Handler
        SECTION .text:CODE:REORDER(1)
BusFault_Handler
        B BusFault_Handler

        PUBWEAK UsageFault_Handler
        SECTION .text:CODE:REORDER(1)
UsageFault_Handler
        B UsageFault_Handler

        PUBWEAK SVC_Handler
        SECTION .text:CODE:REORDER(1)
SVC_Handler
        B SVC_Handler

        PUBWEAK DebugMon_Handler
        SECTION .text:CODE:REORDER(1)
DebugMon_Handler
        B DebugMon_Handler

        PUBWEAK PendSV_Handler
        SECTION .text:CODE:REORDER(1)
PendSV_Handler
        B PendSV_Handler

        PUBWEAK SysTick_Handler
        SECTION .text:CODE:REORDER(1)
SysTick_Handler
        B SysTick_Handler

        
        
        PUBWEAK USB_IRQ_H
        SECTION .text:CODE:REORDER(1)
USB_IRQ_H
        B USB_IRQ_H

        PUBWEAK DMA_IRQ_H
        SECTION .text:CODE:REORDER(1)
DMA_IRQ_H
        B DMA_IRQ_H

        PUBWEAK UART1_IRQ_H
        SECTION .text:CODE:REORDER(1)
UART1_IRQ_H
        B UART1_IRQ_H

        PUBWEAK UART2_IRQ_H
        SECTION .text:CODE:REORDER(1)
UART2_IRQ_H
        B UART2_IRQ_H

       PUBWEAK UART3_IRQ_H
        SECTION .text:CODE:REORDER(1)
UART3_IRQ_H
        B UART3_IRQ_H

       PUBWEAK SSP1_IRQ_H
        SECTION .text:CODE:REORDER(1)
SSP1_IRQ_H
        B SSP1_IRQ_H

        PUBWEAK I2C_IRQ_H
        SECTION .text:CODE:REORDER(1)
I2C_IRQ_H
        B I2C_IRQ_H

        PUBWEAK POWER_IRQ_H
        SECTION .text:CODE:REORDER(1)
POWER_IRQ_H
        B POWER_IRQ_H

        PUBWEAK WWDG_IRQ_H
        SECTION .text:CODE:REORDER(1)
WWDG_IRQ_H
        B WWDG_IRQ_H

        PUBWEAK Timer1_IRQ_H
        SECTION .text:CODE:REORDER(1)
Timer1_IRQ_H
        B Timer1_IRQ_H

        PUBWEAK Timer2_IRQ_H
        SECTION .text:CODE:REORDER(1)
Timer2_IRQ_H
        B Timer2_IRQ_H

        PUBWEAK Timer3_IRQ_H
        SECTION .text:CODE:REORDER(1)
Timer3_IRQ_H
        B Timer3_IRQ_H

        PUBWEAK ADC_IRQ_H
        SECTION .text:CODE:REORDER(1)
ADC_IRQ_H
        B ADC_IRQ_H

        PUBWEAK COMPARATOR_IRQ_H
        SECTION .text:CODE:REORDER(1)
COMPARATOR_IRQ_H
        B COMPARATOR_IRQ_H

        PUBWEAK SSP2_IRQ_H
        SECTION .text:CODE:REORDER(1)
SSP2_IRQ_H
        B SSP2_IRQ_H

        PUBWEAK BKP_IRQ_H
        SECTION .text:CODE:REORDER(1)
BKP_IRQ_H
        B BKP_IRQ_H

        PUBWEAK EXT_INT1_IRQ_H
        SECTION .text:CODE:REORDER(1)
EXT_INT1_IRQ_H
        B EXT_INT1_IRQ_H

        PUBWEAK EXT_INT2_IRQ_H
        SECTION .text:CODE:REORDER(1)
EXT_INT2_IRQ_H
        B EXT_INT2_IRQ_H

        PUBWEAK EXT_INT3_IRQ_H
        SECTION .text:CODE:REORDER(1)
EXT_INT3_IRQ_H
        B EXT_INT3_IRQ_H

        PUBWEAK EXT_INT4_IRQ_H
        SECTION .text:CODE:REORDER(1)
EXT_INT4_IRQ_H
        B EXT_INT4_IRQ_H

        PUBWEAK SDIO_IRQ_H
        SECTION .text:CODE:REORDER(1)
SDIO_IRQ_H
        B SDIO_IRQ_H

        END
;/******************* (C) COPYRIGHT 2010 Phyton *********************************
;*
;* END OF FILE startup_1986BE9x.s */
